package utils

func GetPages(count, pageSize int) int {
	pages := 0
	if count < 0 {
		count = 1
	}
	if pageSize < 0 {
		pages = 10
	}
	if count%pageSize > 0 {
		pages = count/pageSize + 1
	} else {
		pages = count / pageSize
	}
	return pages
}
